package com.fjh.roadmannage.http

import com.fjh.roadmannage.bean.HttpResult
import com.fjh.roadmannage.bean.User
import io.reactivex.rxjava3.core.Observable
import retrofit2.Call
import retrofit2.http.Field
import retrofit2.http.FieldMap
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
import java.util.*

interface MainApi {

    @FormUrlEncoded
    @POST("rest/applogin")
    fun login(
        @Field("username") username: String,
        @Field("password") password: String
    ): Observable<HttpResult<User>>
}